<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  <script type="text/javascript">
  	function  valiPass(){
  		var p1 = document.getElementById("password1").value;
  		var p2 = document.getElementById("password2").value;
  		var notify = document.getElementById("valiPass");
		if(p1==p2&&p1!="")
		{
			notify.innerHTML="<font color='green'>确认密码正确</font>";
		}else{
			notify.innerHTML="<font color='red'>密码不一致，请重新输入密码</font>";
		}
  	}
  </script>
	 <style type="text/css">
<!--
#re{
	position:absolute;
	width:432px;
	height:956px;
	z-index:1;
	left: 600px;
	top: 300px;
}
-->
</style>
  <body>
  	<div id ="re">
	  	<form action="re.action" method="post">
	  		用户名:<input type="text" name="user.userName"><br/>
	  		密&nbsp;&nbsp;&nbsp;&nbsp;码 :<input type="password" name="user.userPassword" id="password1"><br/>
	  		确认密码:<input type="password" id="password2" onblur="valiPass()"><div id="valiPass" style="display: inline;"></div><br/>
	  		年&nbsp;&nbsp;&nbsp;&nbsp;龄:<input type="text" name="user.age" id="age" onblur="decAge()"><div id="agediv" style="display: inline;"></div><br/>
	  		头&nbsp;&nbsp;&nbsp;&nbsp;像:<input type="file" name="user.head"><br/> 
	  		性&nbsp;&nbsp;&nbsp;&nbsp;别:<input type="radio" name="user.gender" value="1"> 男<input type="radio" name="user.gender" value="2"> 女<br/>
	  		<center><input type="submit" value="注册"/></center>
	  	</form>	
  	</div>
  
  </body>
</html>
